class CommentMailer < ActionMailer::Base

  def confirm(comment,setting)
    @subject    = setting.title+" "+HTMLEntities.decode_entities(_('New comment posted'))
    @body["comment"]       = comment
    @body["setting"]      = setting
    @recipients = setting.admin_email
    @from       = setting.admin_email
    @sent_on    = Time.now
    @content_type = "text/html; charset=utf-8; format=flowed"
    @headers = {'Content-Type' => "text/html; charset=utf-8; format=flowed"}
  end
  
end
